//
//  GlobalConstant.swift
//  QualityControlSystem
//
//  Created by Daniel Hu on 1/5/17.
//  Copyright © 2017 com.mask. All rights reserved.
//

import UIKit

struct Color {
    static let bgGray = UIColor.colorFrom(r: 238, g: 238, b: 238, a: 1)
    static let bg = UIColor.colorFrom(r: 40, g: 156, b: 216, a: 1)
    static let textOrange = UIColor.colorFrom(r: 255, g: 176, b: 60, a: 1)
    static let textGray = UIColor.colorFrom(r: 153, g: 153, b: 153, a: 1)
    static let textMedium = UIColor.colorFrom(r: 34, g: 34, b: 34, a: 1)
    static let textLightBlack = UIColor.colorFrom(r: 176, g: 176, b: 176, a: 1)
    static let lineGray = UIColor.colorFrom(r: 213, g: 213, b: 213, a: 1)
}

struct Constant {
    static let projectCellHeight: CGFloat = 65.0
    static let subProjectCellHeight: CGFloat = 200.0
    static let MyInfoCell: CGFloat = 100.0
    static let MyOtherCell: CGFloat = 44.0
    static let buttonRatio: CGFloat = 1.23
    static let itemWidth = (Screen.width - 2 * Padding.left - 10) / 2
    static let itemHeight = itemWidth / (Constant.buttonRatio)
}

struct Padding {
    static let left: CGFloat = 15.0
    static let top: CGFloat = 10.0
    static let space: CGFloat = 5
}

struct Screen {
    static let width = UIScreen.main.bounds.size.width
    static let height = UIScreen.main.bounds.size.height
}

enum ReviewType {
    case reviewWaiting //待审核
    case reviewSuccess //审核成功
    case reviewFailure //待整改
}

enum WorkerType {
    case checker //质检员
    case other   //施工员和监督员
}

enum ProjectType {
    case detail    //项目详情
    case subDetail //子项目详情
}
